<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多元社交论坛</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #eff6ff;
            --secondary: #8b5cf6;
            --dark: #1e293b;
            --light: #f8fafc;
            --gray: #64748b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: var(--shadow);
            padding: 0.75rem 1.5rem;
        }
        
        .navbar-brand {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-container {
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 25px;
            border: 1px solid var(--border);
            background-color: var(--light);
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin: 0 0.5rem;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        .forum-section {
            margin-bottom: 3rem;
        }
        
        .section-header {
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background-color: var(--primary);
        }
        
        .view-all {
            color: var(--primary);
            font-weight: 500;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .view-all:hover {
            color: #2563eb;
            text-decoration: underline;
        }
        
        .forum-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 1.5rem;
        }
        
        .forum-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .forum-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .forum-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.25rem;
        }
        
        .forum-details h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .forum-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .card-body {
            padding: 1.25rem;
        }
        
        .forum-description {
            color: var(--dark);
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }
        
        .forum-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .tag.secondary {
            background-color: rgba(139, 92, 246, 0.1);
            color: var(--secondary);
        }
        
        .post-preview {
            border-top: 1px solid var(--border);
            padding-top: 1rem;
        }
        
        .post-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            transition: color 0.2s;
        }
        
        .post-title:hover {
            color: var(--primary);
        }
        
        .post-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .card-footer {
            padding: 0.75rem 1.25rem;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--light);
        }
        
        .forum-actions {
            display: flex;
            gap: 1rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            color: var(--primary);
            background-color: var(--primary-light);
        }
        
        .action-btn.bookmarked {
            color: var(--secondary);
        }
        
        /* 网格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-layout .forum-card {
            margin-bottom: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .grid-layout .card-body {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .forum-description {
            flex: 1;
        }
        
        /* 图片布局 */
        .image-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
        }
        
        .image-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }
        
        .image-card:hover {
            transform: translateY(-5px);
        }
        
        .image-container {
            height: 180px;
            overflow: hidden;
        }
        
        .image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .image-card:hover .image-container img {
            transform: scale(1.05);
        }
        
        .image-info {
            padding: 0.75rem;
        }
        
        .image-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .image-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .image-stats {
            display: flex;
            gap: 0.75rem;
        }
        
        /* 紧凑列表布局 */
        .compact-list .forum-card {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 0.75rem 1rem;
        }
        
        .compact-list .forum-icon {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }
        
        .compact-list .card-body {
            padding: 0 1rem;
            flex: 1;
        }
        
        .compact-list .forum-description {
            margin-bottom: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .compact-list .card-header,
        .compact-list .card-footer,
        .compact-list .forum-tags,
        .compact-list .post-preview {
            display: none;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .navbar {
                padding: 0.75rem 1rem;
            }
            
            .search-container {
                max-width: 300px;
            }
        }
        
        @media (max-width: 768px) {
            .search-container {
                max-width: 100%;
                margin: 1rem 0;
            }
            
            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .image-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            
            .compact-list .forum-card {
                flex-direction: column;
                text-align: center;
                padding: 1rem;
            }
            
            .compact-list .card-body {
                padding: 1rem 0 0;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-comments"></i> 多元论坛
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarContent">
                <div class="d-flex justify-content-center flex-grow-1">
                    <div class="search-container position-relative">
                        <i class="fas fa-search search-icon"></i>
                        <input type="text" class="search-input" placeholder="搜索论坛、帖子或用户...">
                    </div>
                </div>
                
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-home"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#"><i class="fas fa-th-large"></i> 论坛</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-compass"></i> 发现</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-bell"></i> 通知</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 36px; height: 36px; object-fit: cover;">
                        </a>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#"><i class="fas fa-user me-2"></i> 个人中心</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-bookmark me-2"></i> 我的收藏</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-cog me-2"></i> 设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-sign-out-alt me-2"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="container py-5">
        <!-- 精选论坛 - 标准布局 -->
        <section class="forum-section">
            <div class="section-header">
                <h2 class="section-title">精选论坛</h2>
                <a href="#" class="view-all">查看全部 <i class="fas fa-arrow-right ms-1"></i></a>
            </div>
            
            <div class="standard-layout">
                <!-- 无图论坛 1 -->
                <div class="forum-card">
                    <div class="card-header">
                        <div class="forum-info">
                            <div class="forum-icon">
                                <i class="fas fa-laptop-code"></i>
                            </div>
                            <div class="forum-details">
                                <h3>前端开发技术论坛</h3>
                                <div class="forum-stats">
                                    <div class="stat-item">
                                        <i class="fas fa-user"></i>
                                        <span>12.5k 成员</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-file-alt"></i>
                                        <span>34.2k 帖子</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>今日 2.8k 浏览</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <p class="forum-description">
                            专注于前端开发技术交流，包括HTML5、CSS3、JavaScript、Vue、React等框架讨论，分享最新行业动态和实战经验，适合前端开发者交流学习。
                        </p>
                        <div class="forum-tags">
                            <span class="tag">JavaScript</span>
                            <span class="tag">Vue</span>
                            <span class="tag">React</span>
                            <span class="tag">CSS</span>
                        </div>
                        <div class="post-preview">
                            <div class="post-title">
                                <a href="#" class="text-decoration-none text-dark">如何优化大型Vue项目的性能？分享几个实用技巧</a>
                            </div>
                            <div class="post-meta">
                                <span>2小时前 · 李明</span>
                                <span><i class="fas fa-comment"></i> 42 评论</span>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="action-btn">
                            <i class="fas fa-user-plus"></i>
                            <span>加入论坛</span>
                        </button>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="fas fa-star"></i>
                                <span>推荐</span>
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 无图论坛 2 -->
                <div class="forum-card">
                    <div class="card-header">
                        <div class="forum-info">
                            <div class="forum-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                                <i class="fas fa-camera"></i>
                            </div>
                            <div class="forum-details">
                                <h3>摄影爱好者论坛</h3>
                                <div class="forum-stats">
                                    <div class="stat-item">
                                        <i class="fas fa-user"></i>
                                        <span>8.7k 成员</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-file-alt"></i>
                                        <span>19.3k 帖子</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-eye"></i>
                                        <span>今日 1.5k 浏览</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <p class="forum-description">
                            汇聚摄影爱好者，分享摄影作品、器材评测、拍摄技巧和后期处理经验。无论你是专业摄影师还是摄影新手，都能在这里找到志同道合的朋友。
                        </p>
                        <div class="forum-tags">
                            <span class="tag secondary">人像</span>
                            <span class="tag secondary">风光</span>
                            <span class="tag secondary">器材</span>
                            <span class="tag secondary">后期</span>
                        </div>
                        <div class="post-preview">
                            <div class="post-title">
                                <a href="#" class="text-decoration-none text-dark">尼康Z7 II与索尼A7R IV对比评测，全画幅微单该如何选择？</a>
                            </div>
                            <div class="post-meta">
                                <span>昨天 · 王摄影</span>
                                <span><i class="fas fa-comment"></i> 87 评论</span>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="action-btn">
                            <i class="fas fa-user-plus"></i>
                            <span>加入论坛</span>
                        </button>
                        <div class="forum-actions">
                            <button class="action-btn">
                                <i class="fas fa-star"></i>
                                <span>推荐</span>
                            </button>
                            <button class="action-btn bookmarked">
                                <i class="fas fa-bookmark"></i>
                                <span>已收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 热门论坛 - 网格布局 -->
        <section class="forum-section">
            <div class="section-header">
                <h2 class="section-title">热门论坛</h2>
                <a href="#" class="view-all">查看全部 <i class="fas fa-arrow-right ms-1"></i></a>
            </div>
            
            <div class="grid-layout">
                <!-- 网格布局论坛 1 -->
                <div class="forum-card">
                    <div class="card-header">
                        <div class="forum-info">
                            <div class="forum-icon" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">
                                <i class="fas fa-utensils"></i>
                            </div>
                            <div class="forum-details">
                                <h3>美食分享论坛</h3>
                                <div class="forum-stats">
                                    <div class="stat-item">
                                        <i class="fas fa-user"></i>
                                        <span>7.2k 成员</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-file-alt"></i>
                                        <span>15.8k 帖子</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <p class="forum-description">
                            分享美食制作方法、餐厅推荐、食材选购技巧，探讨各地特色美食文化。
                        </p>
                        <div class="forum-tags">
                            <span class="tag" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">家常菜</span>
                            <span class="tag" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">烘焙</span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="action-btn">
                            <i class="fas fa-user-plus"></i>
                            <span>加入</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
                
                <!-- 网格布局论坛 2 -->
                <div class="forum-card">
                    <div class="card-header">
                        <div class="forum-info">
                            <div class="forum-icon" style="background-color: rgba(22, 163, 74, 0.1); color: #16a34a;">
                                <i class="fas fa-hiking"></i>
                            </div>
                            <div class="forum-details">
                                <h3>户外探险论坛</h3>
                                <div class="forum-stats">
                                    <div class="stat-item">
                                        <i class="fas fa-user"></i>
                                        <span>5.3k 成员</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-file-alt"></i>
                                        <span>9.7k 帖子</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <p class="forum-description">
                            讨论徒步、露营、攀岩等户外活动，分享路线攻略和装备选择经验。
                        </p>
                        <div class="forum-tags">
                            <span class="tag" style="background-color: rgba(22, 163, 74, 0.1); color: #16a34a;">徒步</span>
                            <span class="tag" style="background-color: rgba(22, 163, 74, 0.1); color: #16a34a;">露营</span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="action-btn">
                            <i class="fas fa-user-plus"></i>
                            <span>加入</span>
                        </button>
                        <button class="action-btn bookmarked">
                            <i class="fas fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
                
                <!-- 网格布局论坛 3 -->
                <div class="forum-card">
                    <div class="card-header">
                        <div class="forum-info">
                            <div class="forum-icon" style="background-color: rgba(249, 115, 22, 0.1); color: #f97316;">
                                <i class="fas fa-gamepad"></i>
                            </div>
                            <div class="forum-details">
                                <h3>游戏爱好者论坛</h3>
                                <div class="forum-stats">
                                    <div class="stat-item">
                                        <i class="fas fa-user"></i>
                                        <span>18.7k 成员</span>
                                    </div>
                                    <div class="stat-item">
                                        <i class="fas fa-file-alt"></i>
                                        <span>42.3k 帖子</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <p class="forum-description">
                            涵盖主机游戏、PC游戏、手机游戏等平台，分享游戏攻略、评测和精彩瞬间。
                        </p>
                        <div class="forum-tags">
                            <span class="tag" style="background-color: rgba(249, 115, 22, 0.1); color: #f97316;">单机</span>
                            <span class="tag" style="background-color: rgba(249, 115, 22, 0.1); color: #f97316;">联机</span>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="action-btn">
                            <i class="fas fa-user-plus"></i>
                            <span>加入</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 图片类论坛 - 图片网格布局 -->
        <section class="forum-section">
            <div class="section-header">
                <h2 class="section-title">图片分享论坛</h2>
                <a href="#" class="view-all">查看全部 <i class="fas fa-arrow-right ms-1"></i></a>
            </div>
            
            <div class="image-grid">
                <!-- 图片论坛 1 -->
                <div class="image-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=10" alt="旅行照片">
                    </div>
                    <div class="image-info">
                        <div class="image-title">环球旅行论坛 - 分享世界各地的美丽风景和旅行故事</div>
                        <div class="image-meta">
                            <div class="image-stats">
                                <span><i class="fas fa-file-alt"></i> 8.2k</span>
                                <span><i class="fas fa-eye"></i> 12k</span>
                            </div>
                            <button class="action-btn" style="padding: 0;">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 图片论坛 2 -->
                <div class="image-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=11" alt="艺术作品">
                    </div>
                    <div class="image-info">
                        <div class="image-title">艺术创作论坛 - 绘画、雕塑、设计等艺术作品展示与交流</div>
                        <div class="image-meta">
                            <div class="image-stats">
                                <span><i class="fas fa-file-alt"></i> 5.7k</span>
                                <span><i class="fas fa-eye"></i> 9.3k</span>
                            </div>
                            <button class="action-btn bookmarked" style="padding: 0;">
                                <i class="fas fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 图片论坛 3 -->
                <div class="image-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=12" alt="宠物照片">
                    </div>
                    <div class="image-info">
                        <div class="image-title">宠物爱好者论坛 - 分享宠物日常、饲养经验和宠物照片</div>
                        <div class="image-meta">
                            <div class="image-stats">
                                <span><i class="fas fa-file-alt"></i> 10.3k</span>
                                <span><i class="fas fa-eye"></i> 15.6k</span>
                            </div>
                            <button class="action-btn" style="padding: 0;">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 图片论坛 4 -->
                <div class="image-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=13" alt="汽车照片">
                    </div>
                    <div class="image-info">
                        <div class="image-title">汽车爱好者论坛 - 汽车评测、改装分享和汽车文化讨论</div>
                        <div class="image-meta">
                            <div class="image-stats">
                                <span><i class="fas fa-file-alt"></i> 7.5k</span>
                                <span><i class="fas fa-eye"></i> 11.2k</span>
                            </div>
                            <button class="action-btn" style="padding: 0;">
                                <i class="far fa-bookmark"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 行业论坛 - 紧凑列表布局 -->
        <section class="forum-section">
            <div class="section-header">
                <h2 class="section-title">行业论坛</h2>
                <a href="#" class="view-all">查看全部 <i class="fas fa-arrow-right ms-1"></i></a>
            </div>
            
            <div class="compact-list">
                <!-- 紧凑布局论坛 1 -->
                <div class="forum-card">
                    <div class="forum-icon" style="background-color: rgba(59, 130, 246, 0.1); color: var(--primary);">
                        <i class="fas fa-briefcase"></i>
                    </div>
                    <div class="card-body">
                        <h3>互联网创业论坛</h3>
                        <p class="forum-description">
                            分享创业经验、融资技巧和商业模式，汇聚创业者和投资人
                        </p>
                    </div>
                    <div class="forum-stats">
                        <div class="stat-item">
                            <i class="fas fa-file-alt"></i>
                            <span>6.8k 帖子</span>
                        </div>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                        </button>
                    </div>
                </div>
                
                <!-- 紧凑布局论坛 2 -->
                <div class="forum-card">
                    <div class="forum-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                        <i class="fas fa-graduation-cap"></i>
                    </div>
                    <div class="card-body">
                        <h3>教育行业论坛</h3>
                        <p class="forum-description">
                            教育工作者交流平台，讨论教学方法、教育政策和学习资源
                        </p>
                    </div>
                    <div class="forum-stats">
                        <div class="stat-item">
                            <i class="fas fa-file-alt"></i>
                            <span>4.2k 帖子</span>
                        </div>
                        <button class="action-btn bookmarked">
                            <i class="fas fa-bookmark"></i>
                        </button>
                    </div>
                </div>
                
                <!-- 紧凑布局论坛 3 -->
                <div class="forum-card">
                    <div class="forum-icon" style="background-color: rgba(239, 68, 68, 0.1); color: #ef4444;">
                        <i class="fas fa-heartbeat"></i>
                    </div>
                    <div class="card-body">
                        <h3>健康医疗论坛</h3>
                        <p class="forum-description">
                            分享健康知识、医疗资讯和养生经验，专业人士在线解答
                        </p>
                    </div>
                    <div class="forum-stats">
                        <div class="stat-item">
                            <i class="fas fa-file-alt"></i>
                            <span>9.5k 帖子</span>
                        </div>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                        </button>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 收藏按钮交互
            const bookmarkButtons = document.querySelectorAll('.action-btn:has(.fa-bookmark)');
            bookmarkButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        // 未收藏状态，点击后变为已收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('bookmarked');
                    } else {
                        // 已收藏状态，点击后取消收藏
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('bookmarked');
                    }
                });
            });
        });
    </script>
</body>
</html>
    
